<?php
    $x = new Zend_Auth_Storage_Session('User_Auth');
    $y = $x->read();
    //$x->clear();
?>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
        <div class="container box-sized" style="width:100%;padding:0 28px 0" >

            <a href="#" class="brand"><img src="<?php echo IMAGES_PATH; ?>/logo.png" alt="Raeken"></a>
            <!--                        <form class="navbar-form pull-left">
                                        <input type="text" placeholder="Email" class="searchbox">
                                        <img src="<?php echo IMAGES_PATH; ?>/search-icon.png" style="margin-top:10px" alt="search icon">
                                    </form>-->
<?php
    if(empty($y)){
    ?>
            <a class="pull-right fancybox-iframe-content btn-raeken" href="<?php echo APPLICATION_URL . "/index/login"; ?>" style="margin-top:10px;margin-left:10px;">LOGIN</a>
            <a class="pull-right fancybox-iframe-content btn-raeken" href="<?php echo APPLICATION_URL . "/index/signup"; ?>" style="margin-top:10px;">SIGN UP FOR RAEKEN HERE</a>
<?php
    }else{
    ?>
            <div class="user-nav user-settings pull-right dropdown">
                <span class="user-username"><?php echo ucwords($y->first_name." ".$y->last_name); ?></span>
                <a class="dropdown-toggle pull-left user-arrow" data-toggle="dropdown" href="#" >
                    <img src="<?php echo IMAGES_PATH ?>/down-arrow-nav.png">
                </a>
                <img class="dropdown-arrow" src="<?php echo IMAGES_PATH ?>/up-arrow.png">
                <ul class="dropdown-menu">
                    <li><a href="<?php echo $this->baseUrl("index/settings"); ?>">Settings</a></li>
                    <li><a href="#">Help</a></li>
                    <li><a href="#">Invite Friends</a></li>
                    <li><a href="<?php echo $this->baseUrl("index/logout"); ?>">Logout</a></li>
                </ul>
                <a class="pull-left"><img src="<?php echo IMAGES_PATH; ?>/shop-cart.png"></a>
            </div>
            <div class="user-avatar pull-right">
                <img src="<?php echo IMAGES_PATH; ?>/user-avatar.png">
            </div>
<?php
    }
    ?>
        </div>
    </div>
</div>